<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
     <h1>{{msg}}</h1>
     <h2>我要好好学习 + {{msg}}</h2>
     <h2>{{num1+num2+100}}</h2>
     <hr>
     {{flag}}
     {{flag ? msg1:msg2}}
     {{flag ? 1 : 2}}
     {{flag? 'boy':'girl'}}
  </div>
  <script src="./vue.js"></script>
  <script>
    var vm = new Vue({
      el:'#app',
      data:{
          msg:"vue hello!",
          num1:10,
          num2:20,
          flag:true,
          msg1:"i looks cool",
          msg2:"you looks fine"
      },
      methods:{
      }
     });
  </script>
</body>
</html>
